/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine - graphics/renderer/renderstates
// Copyright (c) 2015.  All Rights Reserved
//
// File:		AEStateGroupRasterizer.cpp
// Author:		Gianluca Belardelli
// Date:		17/07/2015
//
/////////////////////////////////////////////////////////////////////////
#include <AEEngine.h>
#include "internal/HashFunction.h"

void AEStateGroupRasterizer::ComputeHash( void )
{
	m_uiHash = ::ComputeHash( this, offsetof( AEStateGroupRasterizer, m_uiHash ) );
}

void AEStateGroupRasterizer::Invalidate( void )
{
	memset( this, 0, sizeof(AEStateGroupRasterizer) );
}

AEBOOL32 AEStateGroupRasterizer::IsHashValid( void ) const
{
	return m_uiHash == ::ComputeHash( this, offsetof( AEStateGroupRasterizer, m_uiHash ) );
}
